package com.b511.swpu.cementbackend.service;

import com.b511.swpu.cementbackend.dto.input.NavigationInputDto;
import com.b511.swpu.cementbackend.dto.input.RegisterInputDto;
import com.b511.swpu.cementbackend.entity.MAIN_Person;
import com.b511.swpu.cementbackend.entity.SysRole;
import com.b511.swpu.cementbackend.util.R;
import net.sf.json.JSONObject;
import org.springframework.data.domain.PageRequest;

public interface SysManageService {
    R getDataDictTree();

    R getCompanyStructureTree();

    R getEmployeeManage(int num,int size) throws Exception;

    R getOneDataDict(String code);

    R getDataDictByName(String name);

    R getArea();

    R getWellType();

R getCaseSize();

    R getWellSpacing();

    R queryByName(String companyname,String departmentName,String name,Integer num,Integer size);

    R queryCompanyTree();

    R register(RegisterInputDto registerInputDto);

    R logout(String name) throws Exception;

    R querySysRole();

    R queryCompanyName();

    R querydepartmentName();

    R createMainPerson(MAIN_Person main_person);

    R queryMainPerson(String code);

    R updateMainPerson(MAIN_Person main_person);

    R deleteMainPerson(String code);

    R queryAllNavigation();

    R queryNavigationByRole(String sysrole);

    R queryNavigationBysysrole(String sysrole);

    R updateNavigationByRole(NavigationInputDto navigationInputDto);

    R queryAllRole(Integer num,Integer size);

    R createNewRole(SysRole sysRole);

    R updateRole(String name,String id);

    R deleteRole(String role_id);

    R queryAllRoleLikeName(String name,Integer num,Integer size);

    R queryRoleByID(String id);
}
